package com.dotdashdot.pocketquest;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

public class ClassAndroidLogger {
	String title_activity;
	ClassAndroidLogger(String title_activity){
		this.title_activity = title_activity;
	}
	public void info(String message){
		Log.i(title_activity, message);
		System.out.println("Info: " + title_activity + " - " + message);
	}
	public void warning(String message){
		Log.w(title_activity, message);
		System.out.println("Warning: " + title_activity + " - " + message);
	}
	public void error(String message){
		Log.e(title_activity, message);
		System.out.println("Error: " + title_activity + " - " + message);
	}
	public void toast(String message, Context self){
		Toast.makeText(self, message, Toast.LENGTH_SHORT).show();
		Log.i(title_activity, message);
		System.out.println("Info: " + title_activity + " - " + message);
	}
}
